package org.yierge.crm.ssm.plus.users.guid.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yierge.crm.ssm.plus.common.web.JsonResult;

@Slf4j
@RestController(value = "guid_employmentController")
@RequestMapping("/account/guid")
@Validated
@Api(tags = "4.2 就业指导学生管理模块")
public class EmploymentController {

    // TODO 完成查询合作企业们相关信息功能
    @GetMapping("/partner")
    @PreAuthorize("hasAuthority('/account/guid/partner')")
    @ApiOperation("查询合作企业们相关信息")
    @ApiOperationSupport(order = 501)
    @ApiImplicitParams({
            @ApiImplicitParam(name="page", value = "页码", defaultValue = "1", dataType = "long"),
            @ApiImplicitParam(name = "queryType", value = "查询类型，当需要查询全部时，此参数值应为all")
    })
    public JsonResult partnerMessageList(Integer page, String queryType){



        return JsonResult.ok();
    }
    // TODO

    // TODO 完成查询合市场相关信息功能
    @GetMapping("/market")
    @PreAuthorize("hasAuthority('/account/guid/market')")
    @ApiOperation("查询市场相关信息")
    @ApiOperationSupport(order = 502)
    @ApiImplicitParams({
            @ApiImplicitParam(name="page", value = "页码", defaultValue = "1", dataType = "long"),
            @ApiImplicitParam(name = "queryType", value = "查询类型，当需要查询全部时，此参数值应为all")
    })
    public JsonResult marketMessageList(Integer page, String queryType){



        return JsonResult.ok();
    }
    // TODO
}
